package cn.szzsi.business.service;

import cn.szzsi.core.kit.CommonUtil;
import cn.szzsi.model.BusinessBalanceDetail;
import com.jfinal.kit.StrKit;

import java.math.BigDecimal;
import java.util.Date;

public class BusinessBalanceDetailService {
    public static final BusinessBalanceDetailService service=new BusinessBalanceDetailService();

    /**
     *
     * @param bid
     * @param addMoney
     * @param type
     * @param bankType
     * @param cashingAccount
     * @param cashingStatus
     * @param remark
     */
    public void saveInfo(String bid, BigDecimal addMoney,Integer type,Integer bankType,String cashingAccount,Integer cashingStatus,String remark){
        BusinessBalanceDetail bbd=new BusinessBalanceDetail();
        bbd.setId(StrKit.getRandomUUID());
        bbd.setBid(bid);
        bbd.setAddMoney(addMoney);
        bbd.setType(type);
        bbd.setBankType(bankType);
        bbd.setCashingAccount(cashingAccount);
        bbd.setCashingStatus(cashingStatus);
        bbd.setRemark(remark);
        bbd.setCreateDate(new Date());
        bbd.save();
    }
}
